#pragma once
#include "SchedulerTask.h"
#include "DBLayer.h"
#include <map>

using namespace std;

class CleanerTask : public SchedulerTask
{
private:
	typedef map<unsigned, HANDLE> ThreadList;
	typedef pair <unsigned, HANDLE> ThreadListPair;
	typedef map<unsigned, HANDLE>::iterator ThreadListIter;
public:
    CleanerTask(void);
    ~CleanerTask(void);
    void InitTask();
    void StartTask();
    void StopTask();
    void WaitForStop();
private:
    HANDLE hEvent;
    ThreadList threads;
};
